<%--
  -	Date: 2012-03-27
  -
  - Copyright (C) 2012 Jawa Software. All rights reserved.
  -
--%>

<%@ page pageEncoding="utf-8"%>

<%@ taglib uri="http://www.opensymphony.com/sitemesh/decorator" prefix="decorator" %>
<%@ taglib uri="http://www.opensymphony.com/sitemesh/page" prefix="page" %>
<%@ taglib uri="/jawa-tags" prefix="jawa" %>

<decorator:usePage id="decoratedPage" />

<jsp:useBean id="webManager" class="org.jawa.admin.util.WebManager"  />
<% webManager.init(request, response, session, application, out); %>

<%
    String path = request.getContextPath();
    
    Long pageID = decoratedPage.getLongProperty("meta.pageID");

    request.setAttribute("pageID", decoratedPage.getLongProperty("meta.pageID"));
    request.setAttribute("subPageID", decoratedPage.getLongProperty("meta.subPageID"));
    request.setAttribute("extraParams", decoratedPage.getProperty("meta.extraParams"));

    String message = decoratedPage.getProperty("page.message");
    
%>

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title><%= webManager.getAppName() %> : <decorator:title /></title>
    <link rel="stylesheet" type="text/css" href="<%= path %>/styles/bootstrap.css">
    <link rel="stylesheet" type="text/css" href="<%= path %>/styles/bootstrap-responsive.css">
    <link rel="stylesheet" type="text/css" href="<%= path %>/styles/global.css">
    <style type="text/css">
      body {
        padding-top: 53px;
        padding-bottom: 10px;
      }
      .sidebar-nav {
        padding: 9px 0;
      }
    </style>
    <decorator:head />
    <script src="<%= path %>/scripts/jquery.js"></script>
</head>

<body>
    <div class="navbar navbar-fixed-top">
      <div class="navbar-inner">
        <div class="container-fluid">
          <a class="brand" href="#"><%= webManager.getAppName() %></a>
          <div class="nav-collapse">
            <jawa:navtabs  headercss="nav" currentcss="active">
               <a href="[url]">[name]</a>
            </jawa:navtabs>
            <p class="navbar-text pull-right">登录用户 <a href="#">Jawa Admin</a></p>
          </div>
        </div>
      </div>
    </div>
	
    <div class="container-fluid">
      <div class="row-fluid">
       
        <div class="span2">
          <div class="well sidebar-nav">
            
            <jawa:sidebar headercss="nav nav-list " css="nav-header " >
               <a href="[url]">[name]</a>
               <jawa:subsidebar css="" currentcss="active">
                  <a href="[url]">[name]</a>
               </jawa:subsidebar>
            </jawa:sidebar>
           
          </div>
        </div>
        
        <div class="span10">
      		<decorator:body/>
        </div>
        
      </div>

      <hr>

      <footer>
        <p>Copyright &copy; Jawa 2012</p>
      </footer>

    </div>
    
</body>
</html>
